package com.r_z.service.impl;

import com.r_z.entity.UserRole;
import com.r_z.mapper.UserRoleMapper;
import com.r_z.service.UserRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author 梁俊
 * @date 2023/5/30
 * &@version 1.0
 */
@Service
public class UserRoleServiceImpl implements UserRoleService {
    @Resource
    public UserRoleMapper userRoleMapper;


    @Override
    public List<UserRole> selectLikeUserRole(Map map) {
        return userRoleMapper.selectLikeUserRole(map);
    }

    @Override
    public int selectCountUserRole(String userRoleName) {
        return userRoleMapper.selectCountUserRole(userRoleName);
    }
}

